package com.example.blockingqueue.controller;

/**
 * @ClassName Task
 * @Description
 * @Author huyingliang
 * @Date 2024-02-19 10:13
 */
public class Task {

    private String taskName;
    private String taskType;
    private String taskStatus;
    private String taskResult;

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    public String getTaskResult() {
        return taskResult;
    }

    public void setTaskResult(String taskResult) {
        this.taskResult = taskResult;
    }

    public Task(String taskName, String taskType, String taskStatus, String taskResult) {
        this.taskName = taskName;
        this.taskType = taskType;
        this.taskStatus = taskStatus;
        this.taskResult = taskResult;
    }

    public Task() {
    }

    public void run() {
        System.out.println("任务名称：" + taskName + "已经被消费");
    }

}
